package com.bpmn.flow.controller.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 模型视图对象
 *
 * @author rain
 */
@Data
public class ModelVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 模型id
     */
    private String id;

    /**
     * 模型名称
     */
    private String name;

    /**
     * 模型标识key
     */
    private String key;

    /**
     * 模型分类
     */
    private String category;

    /**
     * 模型XML
     */
    private String xml;

    /**
     * 版本号
     */
    private Integer version;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String description;

    @Schema(description = "获取用户接口地址")
    private String userFetchUrl;

    @Schema(description = "任务回调地址")
    private String taskCallbackUrl;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 部署id
     */
    private String deploymentId;

    /**
     * 流程定义id
     */
    private String processDefinitionId;

    /**
     * 流程状态
     */
    private String status;

    /**
     * 最新部署时间
     */
    private Date deploymentTime;


}
